﻿using AlipayPay.Domain;
using AlipayPay.Domain.Model.Interface;
using AlipayPay.Infrastructure.EntitiyExtensions;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TaoTaoBamboo.Domain;

namespace AlipayPay.Repository.MySql.Infrastructure
{
    /// <summary>
    /// 用户仓储
    /// </summary>
    public class UsersRepository : RepositoryBase<ShoppingCart>, IUsersRepository
    {
        public UsersRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
        {

        }

        public async Task<ShoppingCart> Get() 
        {
            return await _db.Queryable<ShoppingCart>().FirstAsync();
        }
    }
}
